.container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: var(--font-geist-sans);
}

.header {
  text-align: center;
  padding: 60px 20px 40px;
  color: white;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* 用户信息区域 */
.userInfo {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.avatarSection {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #667eea;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.userDetails h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.email {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.level {
  margin-top: 1rem;
}

.levelBadge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

.vip {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
}

.普通会员 {
  background: linear-gradient(135deg, #6c757d, #adb5bd);
  color: white;
}

.黄金会员 {
  background: linear-gradient(135deg, #ffc107, #ffca2c);
  color: #333;
}

/* 统计信息 */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.statItem {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.statItem h3 {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.statItem p {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

/* 联系信息 */
.contactInfo {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contactInfo h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.contactGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.contactItem {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.contactItem h4 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.contactItem p {
  color: #666;
  margin: 0;
}

/* 订单历史 */
.orderHistory {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.orderHistory h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.orderList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.orderItem {
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: box-shadow 0.2s ease;
}

.orderItem:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.orderHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.orderId {
  font-weight: bold;
  color: #333;
}

.orderStatus {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.已完成 {
  background: #d4edda;
  color: #155724;
}

.配送中 {
  background: #fff3cd;
  color: #856404;
}

.orderDetails {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 0.9rem;
}

.orderTotal {
  font-weight: bold;
  color: #333;
}

.noOrders {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem;
}

/* 渲染信息 */
.renderInfo {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.renderInfo h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.renderDetails {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
}

.renderDetails p {
  margin: 0.5rem 0;
  color: #666;
}

/* 错误页面 */
.error {
  text-align: center;
  padding: 4rem 2rem;
  color: white;
}

.error h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .avatarSection {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  .userDetails h2 {
    font-size: 1.5rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .contactGrid {
    grid-template-columns: 1fr;
  }

  .orderHeader,
  .orderDetails {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .main {
    padding: 0 15px 40px;
  }
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
  .userInfo,
  .contactInfo,
  .orderHistory,
  .renderInfo {
    background: #333;
    color: white;
  }

  .userDetails h2,
  .contactInfo h3,
  .orderHistory h3,
  .renderInfo h3 {
    color: white;
  }

  .email,
  .contactItem p,
  .orderDetails,
  .noOrders,
  .renderDetails p {
    color: #ccc;
  }

  .statItem,
  .contactItem {
    background: #444;
  }

  .statItem h3 {
    color: #ccc;
  }

  .statItem p {
    color: white;
  }

  .orderItem {
    border-color: #555;
  }

  .orderItem:hover {
    background: #444;
  }

  .renderDetails {
    background: #444;
  }
}
